package org.cbyyx.tc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

/**
 *
 * @TableName order_items
 */
@TableName(value ="order_items")
@Data
@Builder
public class OrderItems {
    /**
     * 订单项ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单ID
     */
    @TableField(value = "orderId")
    private Long orderId;

    /**
     * 商品ID
     */
    @TableField(value = "productId")
    private Long productId;

    /**
     * 商品数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 商品单价
     */
    @TableField(value = "price")
    private Long price;

    /**
     * 商品名称
     */
    @TableField(value = "productName")
    private String productName;
}